import request from '@/utils/request'
// src/api/chapters.js

//执行AI写作任务下一步
export function nextGuide (data) {
  return request({
    url: "/api/v1/tk/guide/next",
    method: "POST",
    data
  })
}

//执行AI写作导引任务接口
export function executeGuide (data) {
  return request({
    url: "/api/v1/tk/guide/run",
    method: "POST",
    data
  })
}

//写作导引任务接口
export function createGuide (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/tk/guide/create",
    method: "POST",
    data
  })
}


export function getTools (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/tk/tools",
    method: "POST",
    data
  });
}
export function creteArrange (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/tk/arrange",
    method: "POST",
    data
  });
}

export function getStatus (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/tk/task/status",
    method: "POST",
    data
  });
}
//取消任务接口
export function cancelAi (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/tk/cancel",
    method: "POST",
    data
  });
}
//设置任务为静默执行模式接口
export function setAiJm (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/tk/silent",
    method: "POST",
    data
  });
}
export function setCancelAiJm (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/tk/unsilent",
    method: "POST",
    data
  });
}
export function getStat (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/tk/stat",
    method: "POST",
    data
  });
}


export function getSubsets (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/arch/subsets",
    method: "POST",
    data
  });
}

export function getMaster (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/arch/master",
    method: "POST",
    data
  });
}
export function getList (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/arch/list",
    method: "POST",
    data
  });
}
export function create (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/arch/create",
    method: "POST",
    data
  });
}

export function deleteFun (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/arch/delete",
    method: "POST",
    data
  });
}
export function edit (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/arch/edit",
    method: "POST",
    data
  });
}
export function setmaster (data) {
  // data包含: { volume_id, title, content }
  return request({
    url: "/api/v1/arch/setmaster",
    method: "POST",
    data
  });
}
